﻿using System;
using Autodesk.Revit.DB;

namespace HYRElectric.PowerSystem
{
	internal class FindPowerAndPanel
	{
		public ElementId PowerId
		{
			get
			{
				return this.powerId;
			}
			set
			{
				this.powerId = value;
			}
		}

		public ElementId PanelId
		{
			get
			{
				return this.panelId;
			}
			set
			{
				this.panelId = value;
			}
		}

		public override bool Equals(object obj)
		{
			FindPowerAndPanel findPowerAndPanel = obj as FindPowerAndPanel;
			return findPowerAndPanel.panelId.IntegerValue == this.panelId.IntegerValue && findPowerAndPanel.powerId.IntegerValue == this.powerId.IntegerValue;
		}

		private ElementId powerId;

		private ElementId panelId;
	}
}
